package com.ruoyi.resale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品销售退货对象 re_sale
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
public class ReSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Integer productId;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Integer customerId;

    /** 支付类型 */
    @Excel(name = "支付类型")
    private String paymentType;

    /** 销售退货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售退货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reSaleTime;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long operatorId;

    /** 销售退货数量 */
    @Excel(name = "销售退货数量")
    private Integer reSaleQuantity;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String productSpec;

    /** 销售退货价格 */
    @Excel(name = "销售退货价格")
    private BigDecimal reSalePrice;

    /** 销售退货总价格 */
    @Excel(name = "销售退货总价格")
    private BigDecimal reSaleTotalPrice;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setProductId(Integer productId) 
    {
        this.productId = productId;
    }

    public Integer getProductId() 
    {
        return productId;
    }
    public void setCustomerId(Integer customerId) 
    {
        this.customerId = customerId;
    }

    public Integer getCustomerId() 
    {
        return customerId;
    }
    public void setPaymentType(String paymentType) 
    {
        this.paymentType = paymentType;
    }

    public String getPaymentType() 
    {
        return paymentType;
    }
    public void setReSaleTime(Date reSaleTime) 
    {
        this.reSaleTime = reSaleTime;
    }

    public Date getReSaleTime() 
    {
        return reSaleTime;
    }
    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }
    public void setReSaleQuantity(Integer reSaleQuantity) 
    {
        this.reSaleQuantity = reSaleQuantity;
    }

    public Integer getReSaleQuantity() 
    {
        return reSaleQuantity;
    }
    public void setProductSpec(String productSpec) 
    {
        this.productSpec = productSpec;
    }

    public String getProductSpec() 
    {
        return productSpec;
    }
    public void setReSalePrice(BigDecimal reSalePrice) 
    {
        this.reSalePrice = reSalePrice;
    }

    public BigDecimal getReSalePrice() 
    {
        return reSalePrice;
    }
    public void setReSaleTotalPrice(BigDecimal reSaleTotalPrice) 
    {
        this.reSaleTotalPrice = reSaleTotalPrice;
    }

    public BigDecimal getReSaleTotalPrice() 
    {
        return reSaleTotalPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("customerId", getCustomerId())
            .append("paymentType", getPaymentType())
            .append("reSaleTime", getReSaleTime())
            .append("operatorId", getOperatorId())
            .append("reSaleQuantity", getReSaleQuantity())
            .append("productSpec", getProductSpec())
            .append("reSalePrice", getReSalePrice())
            .append("reSaleTotalPrice", getReSaleTotalPrice())
            .append("remark", getRemark())
            .toString();
    }
}
